package com.anxinr.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.util.Date;

/**
 * @author : anxinr
 * @date : 2023/9/22 15:55
 */
@Data
@TableName("shopping_info")
public class ShoppingOrder {

    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(type = IdType.ASSIGN_ID)
    private Long id ;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId ;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long goodsId ;

    private Integer state ;

    private String remark ;

    private Date createTime ;

    private String createBy ;

    private Date updateTime ;

    private String updateBy ;

}
